<div class="full-width" id="nav-wrapper">
    <ul id="nav">
        <li <?php echo ($segment == 'landing') ? 'class="active nav-current"' : '' ?>>
            <a href="<?php echo site_url(($langCode == 'vietnam') ? 'trang-chu' : 'homepage') ?>">Trang chủ</a>
        </li>
        <?php foreach ($menu as $m): ?>
            <?php if ($m->parent == 0): ?>
                <li <?php echo ($m->active) ? 'class="active nav-current"' : '' ?>>
                    <a href="<?php echo $m->url ?>"><?php echo $m->title ?></a>
                    <ul style="display: none; visibility: visible;">
                        <?php foreach ($menu as $child): ?>
                            <?php if ($child->parent == $m->id): ?>
                                <li>
                                    <a href="<?php echo $child->url ?>"><?php echo $child->title ?></a>
                                </li>
                            <?php endif; ?>
                        <?php endforeach; ?>
                    </ul>           
                </li>
            <?php endif; ?>
        <?php endforeach; ?>
<!--        <li <?php echo ($segment == 'contact') ? 'class="active nav-current"' : '' ?>>
    <a href="<?php echo site_url(($langCode == 'vietnam') ? 'lien-he' : 'contact') ?>">Liên hệ</a>
</li>
<li class="" id="search">
    <form method="get" action="<?php echo site_url('tim-kiem'); ?>">
        <input onclick="this.value=''" name="tukhoa" type="text"/><button type="submit">Tìm</button>
    </form>
</li>-->
    </ul>
</div> 
<div class="tool-bar">
    <div class="inner-toolbar">
        <div class="language">
            <a id="flag-vietnam" class="flag-vn flag" href="#"><span id="ctl00_lblVietnamese"><?php echo $lang['change_lang_vietnam'] ?></span></a>
            <a id="flag-english" class="flag-eng flag" href="#"><span id="ctl00_lblEnglish"><?php echo $lang['change_lang_english'] ?></span></a>
        </div>
    </div>
</div>

<!-- Begin outer wrapper -->
<div id="outter-wrapper" class="auto-margin">
    <div class="wrapper-content">